<!doctype html>
<html class="no-js" lang="">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>nwst-admin documentation</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
	   <link rel="stylesheet" href="../styles/style.css">
        <link rel="stylesheet" href="../styles/dark.css" media="(prefers-color-scheme: dark)">
    </head>
    <body>

        <div class="navbar navbar-default navbar-fixed-top visible-xs">
            <a href="../" class="navbar-brand">nwst-admin documentation</a>
            <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
        </div>

        <div class="xs-menu menu" id="mobile-menu">
                <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div>            <compodoc-menu></compodoc-menu>
        </div>

        <div class="container-fluid main">
           <div class="row main">
               <div class="hidden-xs menu">
                   <compodoc-menu mode="normal"></compodoc-menu>
               </div>
               <!-- START CONTENT -->
               <div class="content module">
                   <div class="content-data">



<ol class="breadcrumb">
    <li>Modules</li>
    <li >AuthModule</li>
</ol>

<div class="text-center module-graph-container">
    <div id="module-graph-svg">
        <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.47.3 (20210619.1520)
 -->
<!-- Title: dependencies Pages: 1 -->
<svg width="840pt" height="247pt"
 viewBox="0.00 0.00 840.00 246.80" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 242.8)">
<title>dependencies</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-242.8 836,-242.8 836,4 -4,4"/>
<text text-anchor="middle" x="416" y="-8.2" font-family="sans-serif" font-size="14.00">dependencies</text>
<g id="clust1" class="cluster">
<title>cluster_AuthModule</title>
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-32.8 8,-230.8 824,-230.8 824,-32.8 8,-32.8"/>
</g>
<g id="clust6" class="cluster">
<title>cluster_AuthModule_providers</title>
<polygon fill="none" stroke="black" points="260,-40.8 260,-92.8 816,-92.8 816,-40.8 260,-40.8"/>
</g>
<g id="clust4" class="cluster">
<title>cluster_AuthModule_exports</title>
<polygon fill="none" stroke="black" points="349,-170.8 349,-222.8 455,-222.8 455,-170.8 349,-170.8"/>
</g>
<g id="clust3" class="cluster">
<title>cluster_AuthModule_imports</title>
<polygon fill="none" stroke="black" points="16,-40.8 16,-92.8 252,-92.8 252,-40.8 16,-40.8"/>
</g>
<!-- DatabaseModule -->
<g id="node1" class="node">
<title>DatabaseModule</title>
<polygon fill="#8dd3c7" stroke="black" points="244.35,-84.8 241.35,-88.8 220.35,-88.8 217.35,-84.8 133.65,-84.8 133.65,-48.8 244.35,-48.8 244.35,-84.8"/>
<text text-anchor="middle" x="189" y="-62.6" font-family="Times,serif" font-size="14.00">DatabaseModule</text>
</g>
<!-- AuthModule -->
<g id="node3" class="node">
<title>AuthModule</title>
<polygon fill="#8dd3c7" stroke="black" points="445.55,-149.8 442.55,-153.8 421.55,-153.8 418.55,-149.8 358.45,-149.8 358.45,-113.8 445.55,-113.8 445.55,-149.8"/>
<text text-anchor="middle" x="402" y="-127.6" font-family="Times,serif" font-size="14.00">AuthModule</text>
</g>
<!-- DatabaseModule&#45;&gt;AuthModule -->
<g id="edge1" class="edge">
<title>DatabaseModule&#45;&gt;AuthModule</title>
<path fill="none" stroke="black" d="M189,-84.82C189,-102.17 189,-125.8 189,-125.8 189,-125.8 348.38,-125.8 348.38,-125.8"/>
<polygon fill="black" stroke="black" points="348.38,-129.3 358.38,-125.8 348.38,-122.3 348.38,-129.3"/>
</g>
<!-- UsersModule -->
<g id="node2" class="node">
<title>UsersModule</title>
<polygon fill="#8dd3c7" stroke="black" points="115.92,-84.8 112.92,-88.8 91.92,-88.8 88.92,-84.8 24.08,-84.8 24.08,-48.8 115.92,-48.8 115.92,-84.8"/>
<text text-anchor="middle" x="70" y="-62.6" font-family="Times,serif" font-size="14.00">UsersModule</text>
</g>
<!-- UsersModule&#45;&gt;AuthModule -->
<g id="edge2" class="edge">
<title>UsersModule&#45;&gt;AuthModule</title>
<path fill="none" stroke="black" d="M70,-85.08C70,-106.12 70,-137.8 70,-137.8 70,-137.8 348.26,-137.8 348.26,-137.8"/>
<polygon fill="black" stroke="black" points="348.26,-141.3 358.26,-137.8 348.26,-134.3 348.26,-141.3"/>
</g>
<!-- AuthService  -->
<g id="node4" class="node">
<title>AuthService </title>
<polygon fill="#fb8072" stroke="black" points="446.98,-214.8 357.02,-214.8 357.02,-178.8 446.98,-178.8 446.98,-214.8"/>
<text text-anchor="middle" x="402" y="-192.6" font-family="Times,serif" font-size="14.00">AuthService </text>
</g>
<!-- AuthModule&#45;&gt;AuthService  -->
<g id="edge3" class="edge">
<title>AuthModule&#45;&gt;AuthService </title>
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M402,-149.91C402,-149.91 402,-168.79 402,-168.79"/>
<polygon fill="black" stroke="black" points="398.5,-168.79 402,-178.79 405.5,-168.79 398.5,-168.79"/>
</g>
<!-- AuthService -->
<g id="node5" class="node">
<title>AuthService</title>
<ellipse fill="#fdb462" stroke="black" cx="749" cy="-66.8" rx="59.11" ry="18"/>
<text text-anchor="middle" x="749" y="-62.6" font-family="Times,serif" font-size="14.00">AuthService</text>
</g>
<!-- AuthService&#45;&gt;AuthModule -->
<g id="edge4" class="edge">
<title>AuthService&#45;&gt;AuthModule</title>
<path fill="none" stroke="black" d="M749,-85.08C749,-106.12 749,-137.8 749,-137.8 749,-137.8 455.6,-137.8 455.6,-137.8"/>
<polygon fill="black" stroke="black" points="455.6,-134.3 445.6,-137.8 455.6,-141.3 455.6,-134.3"/>
</g>
<!-- JwtStrategy -->
<g id="node6" class="node">
<title>JwtStrategy</title>
<ellipse fill="#fdb462" stroke="black" cx="615" cy="-66.8" rx="56.76" ry="18"/>
<text text-anchor="middle" x="615" y="-62.6" font-family="Times,serif" font-size="14.00">JwtStrategy</text>
</g>
<!-- JwtStrategy&#45;&gt;AuthModule -->
<g id="edge5" class="edge">
<title>JwtStrategy&#45;&gt;AuthModule</title>
<path fill="none" stroke="black" d="M615,-84.82C615,-102.17 615,-125.8 615,-125.8 615,-125.8 455.62,-125.8 455.62,-125.8"/>
<polygon fill="black" stroke="black" points="455.62,-122.3 445.62,-125.8 455.62,-129.3 455.62,-122.3"/>
</g>
<!-- LocalStrategy -->
<g id="node7" class="node">
<title>LocalStrategy</title>
<ellipse fill="#fdb462" stroke="black" cx="475" cy="-66.8" rx="65.41" ry="18"/>
<text text-anchor="middle" x="475" y="-62.6" font-family="Times,serif" font-size="14.00">LocalStrategy</text>
</g>
<!-- LocalStrategy&#45;&gt;AuthModule -->
<g id="edge6" class="edge">
<title>LocalStrategy&#45;&gt;AuthModule</title>
<path fill="none" stroke="black" d="M427.79,-79.33C427.79,-79.33 427.79,-103.65 427.79,-103.65"/>
<polygon fill="black" stroke="black" points="424.29,-103.65 427.79,-113.65 431.29,-103.65 424.29,-103.65"/>
</g>
<!-- UsersService -->
<g id="node8" class="node">
<title>UsersService</title>
<ellipse fill="#fdb462" stroke="black" cx="330" cy="-66.8" rx="61.95" ry="18"/>
<text text-anchor="middle" x="330" y="-62.6" font-family="Times,serif" font-size="14.00">UsersService</text>
</g>
<!-- UsersService&#45;&gt;AuthModule -->
<g id="edge7" class="edge">
<title>UsersService&#45;&gt;AuthModule</title>
<path fill="none" stroke="black" d="M375.1,-79.33C375.1,-79.33 375.1,-103.65 375.1,-103.65"/>
<polygon fill="black" stroke="black" points="371.6,-103.65 375.1,-113.65 378.6,-103.65 371.6,-103.65"/>
</g>
</g>
</svg>

    </div>
    <i id="fullscreen" class="icon ion-ios-resize module-graph-fullscreen-btn" aria-hidden="true"></i>
    <div class="btn-group size-buttons">
        <button id="zoom-in" class="btn btn-default btn-sm">Zoom in</button>
        <button id="reset" class="btn btn-default btn-sm">Reset</button>
        <button id="zoom-out" class="btn btn-default btn-sm">Zoom out</button>
    </div>
</div>
<script src="../js/libs/svg-pan-zoom.min.js"></script>
<script src="../js/svg-pan-zoom.controls.js"></script>

<ul class="nav nav-tabs" role="tablist">
    <li  class="active" >
        <a href="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
    </li>
    <li >
        <a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
    </li>
</ul>

<div class="tab-content">
    <div class="tab-pane fade active in" id="c-info">

        <p class="comment">
            <h3>File</h3>
        </p>
        <p class="comment">
            <code>src/logical/auth/auth.module.ts</code>
        </p>





        <div class="container-fluid module">
            <div class="row">
                <div class="col-sm-3">
                    <h3>Providers<a href="https://angular.io/api/core/NgModule#providers" target="_blank"
                            title="Official documentation about module providers"><span class="icon ion-ios-information-circle-outline"></a></h3>
                    <ul class="list-group">
                        <li class="list-group-item">
                            <a href="../injectables/AuthService.html">AuthService</a>
                        </li>
                        <li class="list-group-item">
                            <a href="../injectables/JwtStrategy.html">JwtStrategy</a>
                        </li>
                        <li class="list-group-item">
                            <a href="../injectables/LocalStrategy.html">LocalStrategy</a>
                        </li>
                        <li class="list-group-item">
                            <a href="../injectables/UsersService.html">UsersService</a>
                        </li>
                    </ul>
                </div>
                <div class="col-sm-3">
                    <h3>Controllers<a href="https://docs.nestjs.com/controllers" target="_blank" title="Official documentation about module controllers"><span
                                class="icon ion-ios-information-circle-outline"></a></h3>
                    <ul class="list-group">
                        <li class="list-group-item">
                            <a href="../controllers/AuthController.html">AuthController</a>
                        </li>
                    </ul>
                </div>
                <div class="col-sm-3">
                    <h3>Imports<a href="https://angular.io/api/core/NgModule#imports" target="_blank" title="Official documentation about module imports"><span
                                class="icon ion-ios-information-circle-outline"></a></h3>
                    <ul class="list-group">
                        <li class="list-group-item">
                            <a href="../modules/DatabaseModule.html">DatabaseModule</a>
                        </li>
                        <li class="list-group-item">
                            <a href="../modules/UsersModule.html">UsersModule</a>
                        </li>
                    </ul>
                </div>
                <div class="col-sm-3">
                    <h3>Exports<a href="https://angular.io/api/core/NgModule#exports" target="_blank" title="Official documentation about module exports"><span
                                class="icon ion-ios-information-circle-outline"></a></h3>
                    <ul class="list-group">
                        <li class="list-group-item">
                            <a href="../s/AuthService.html">AuthService</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>


    </div>


    <div class="tab-pane fade  tab-source-code" id="c-source">
        <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Module } from &#x27;@nestjs/common&#x27;;
import { AuthService } from &#x27;./auth.service&#x27;;
import { AuthController } from &#x27;./auth.controller&#x27;;
import { PassportModule } from &#x27;@nestjs/passport&#x27;;
import { JwtModule } from &#x27;@nestjs/jwt&#x27;;
import { jwtConstants } from &#x27;./constats&#x27;;
import { UsersModule } from &#x27;src/routers/users/users.module&#x27;;
import { LocalStrategy } from &#x27;./local.strategy&#x27;;
import { JwtStrategy } from &#x27;./jwt.strategy&#x27;;
import { usersProviders } from &#x27;src/routers/users/users.providers&#x27;;
import { DatabaseModule } from &#x27;src/providers/database/database.module&#x27;;
import { UsersService } from &#x27;src/routers/users/users.service&#x27;;

@Module({
  imports: [
    PassportModule.register({ defaultStrategy: &#x27;jwt&#x27; }),
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions: { expiresIn: &#x27;1h&#x27; }, // token 过期时效
    }),
    UsersModule,
    DatabaseModule,
  ],
  controllers: [AuthController],
  providers: [
    AuthService,
    LocalStrategy,
    JwtStrategy,
    UsersService,
    ...usersProviders,
  ],
  exports: [AuthService],
})
export class AuthModule {}
</code></pre>
    </div>
</div>















                   </div><div class="search-results">
    <div class="has-results">
        <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
        <ul class="search-results-list"></ul>
    </div>
    <div class="no-results">
        <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
    </div>
</div>
</div>
               <!-- END CONTENT -->
           </div>
       </div>

       <script>
            var COMPODOC_CURRENT_PAGE_DEPTH = 1;
            var COMPODOC_CURRENT_PAGE_CONTEXT = 'module';
            var COMPODOC_CURRENT_PAGE_URL = 'AuthModule.html';
            var MAX_SEARCH_RESULTS = 15;
       </script>

       <script src="../js/libs/custom-elements.min.js"></script>
       <script src="../js/libs/lit-html.js"></script>

       <script src="../js/menu-wc.js" defer></script>
       <script nomodule src="../js/menu-wc_es5.js" defer></script>

       <script src="../js/libs/bootstrap-native.js"></script>

       <script src="../js/libs/es6-shim.min.js"></script>
       <script src="../js/libs/EventDispatcher.js"></script>
       <script src="../js/libs/promise.min.js"></script>
       <script src="../js/libs/zepto.min.js"></script>

       <script src="../js/compodoc.js"></script>

       <script src="../js/tabs.js"></script>
       <script src="../js/menu.js"></script>
       <script src="../js/libs/clipboard.min.js"></script>
       <script src="../js/libs/prism.js"></script>
       <script src="../js/sourceCode.js"></script>
          <script src="../js/search/search.js"></script>
          <script src="../js/search/lunr.min.js"></script>
          <script src="../js/search/search-lunr.js"></script>
          <script src="../js/search/search_index.js"></script>
       <script src="../js/lazy-load-graphs.js"></script>


    </body>
</html>
